package BanyuanClub.Work.Story.Two;

import java.util.Scanner;

public class Gardear {
    public Object gardear(){
        Scanner in = new Scanner(System.in);
        String s = in.next();
        if ("苹果".equals(s))
            return new Apple().pear();
        if ("桔子".equals(s))
            return new Orange().pear();
        if ("梨".equals(s))
            return new Pear().pear();
        System.out.println("莫得");
        return null;
    }

    public static void main(String[] args) {
        new Gardear().gardear();
    }
}
